<?php
class Server {
  public static function delete_obj($orm, $sys, $inst, $is_iframe) {
    $req = json_decode(Utils::get_param('req', '[]'));
    $orm->delete('pb_colg_user', $req);
    if (isset($req->__pg)) {
      $res = $orm->get('pb_colg_user', 't.name', 'ASC', $req->__pg, SIZE, NULL);
      echo json_encode($res);
    }
  }
  
  public static function get_objs($orm, $sys, $inst, $is_iframe) {
    $req = json_decode(Utils::get_param('req', '[]'));
    $res = $orm->get('pb_colg_user', $req->o, $req->q, $req->pg, SIZE, NULL);
    echo json_encode($res);
  }
}
?>